# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:       王景渊  
# Name:         03
# Description:
# Author:       dell
# Date:         2019/4/10
#-------------------------------------------------------------------------------
# 农业银行:95599建设银行:95533中国银行:95566工商银行:95588交通银行:95559
import re
# lhnum = r'9559 9[0-9]{3} [0-9]{4} [0-9]{4}'
# jhnum = r'9553 3[0-9]{3} [0-9]{4} [0-9]{4}'
# zgnum = r'9556 6[0-9]{3} [0-9]{4} [0-9]{4}'
# gsnum = r'9558 8[0-9]{3} [0-9]{4} [0-9]{4}'
# jtnum = r'9555 9[0-9]{3} [0-9]{4} [0-9]{4}'
num = r'(955[0-9]) ([0-9]{4}) ([0-9]{4}) ([0-9]{4})'
s = input('请输入银行卡号:')
m = re.search(num,s)
if m is not None:
    m.group()
if m.group(1) == '9559':
    name = '农业银行'
elif m.group(1) == '9553':
    name = '建设银行'
elif m.group(1) == '9556':
    name = '中国银行'
else:
    print('卡号错误')
print('卡号{}正确，属于{}'.format(m.group(),name))
